﻿Option Strict On

Imports Sims3RegistryKey
Public Class Localize
    Private Shared Chinese As New Dictionary(Of String, String)() _
        From {{"World Name: ", "世界名称： "}, {"Save Name: ", "存档名称: "}, {"Save clean has been completed!", "存档清理完成！"},
             {"I have shrunk your save from  ", "我将您的存档从"}, {" MB to  ", "MB 缩水到"}, {"The percentage is  ", "百分比为："},
              {"Congratulations!", "恭喜！"}, {"Before clear all memories, make sure you have disable memory in the game.", "再您清理存档之前，请确认您已经关闭记忆，否则后果自负"},
              {"Attention", "请注意"}, {"All memory has been deleted!", "所有的记忆清理完毕！"}, {"Please choose the folder to which you want to put your save. Please note that this is an auto-overwrite function", "请选择备份存档的目标文件夹.请注意，这是一个自动覆盖的程序，所以确保这个文件夹之前无备份过存档！"},
              {"Save has been backup!", "存档备份完成！"}, {"Clean", "一键清理"}, {"Clear Memory", "清理记忆"}, {"Backup Save", "备份存档"}, {"Exit", "退出"}, {"Save Cleaner V2 By Kuree", "存档清理V2    by Kuree"}}

    Public Shared Function Localize(ByVal strName As String) As String
        If TS3CC.CultureName.Contains("zh") = True AndAlso Chinese.Keys.Contains(strName) Then
            Return Chinese.Item(strName)
        Else

            Return strName
        End If
    End Function
End Class
